package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.CheckGroup;
import com.itheima.health.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface SetmealDao {

    /**
     * 插入
     * @param setmeal
     */
    void insert(Setmeal setmeal);

    /**
     * 分页查询
     * @param queryString
     * @return
     */
    Page<CheckGroup> selectByConditon(@Param("queryString") String queryString);

    /**
     * 查询所有检查项
     * @return
     */
    List<Setmeal> selectAll();

    /**
     * 体检预约(套餐展示)
     * @return
     */
    @Select("select * from t_setmeal")
    List<Setmeal> getSetmeal();


    Setmeal selectById(Integer id);
}
